﻿using System.Windows.Forms;
using CloudBox.Feature.Clipboard;
using CloudBox.Feature.Clipboard.Implement;

namespace CloudBox.Feature.Clipboard.Helper
{
    public static class ClipboardHelper
    {
        public static IClipUnit ToTextClipUnit(this IDataObject iDataObject)
        {
            return new TextClipUnit(iDataObject.GetData(DataFormats.Text).ToString());
        }
    }
}
